package com.tutu.flow.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class BpmForm implements Serializable {
	/**
	 * 其它业务流程
	 */
	public final static String OTHER_BUSINESS = "other_business";
	
    private String formId;

    private String contractNo;

    private String businessNo;
    
    private String businessNoLikeAfter;

    private String companyName;

    private String companyAddress;

    private String businessScope;

    private String firstSalesman;

    private String secondSalesman;

    private String userName;

    private String registeredCapital;

    private String paidCapital;

    private BigDecimal contractAmount;

    private String paymentWay;

    private BigDecimal nominalFee;

    private String ca;

    private String isTallyNetfile;

    private String nominalFeeBearer;

    private BigDecimal monthlyFee;

    private BigDecimal receivable;

    private String remark;

    private String adjunct;

    private String procInstId;

    private String aliveFlag;

    private String creator;
    
    private String creatorName;

    private Date createTime;

    private String modifier;

    private Date modifyTime;
    
    private List<BpmStockHolder> bpmStockHolders;
    
    private String taskId;

    private static final long serialVersionUID = 1L;

    public String getFormId() {
        return formId;
    }

    public void setFormId(String formId) {
        this.formId = formId == null ? null : formId.trim();
    }

    public String getContractNo() {
        return contractNo;
    }

    public void setContractNo(String contractNo) {
        this.contractNo = contractNo == null ? null : contractNo.trim();
    }

    public String getBusinessNo() {
        return businessNo;
    }

    public void setBusinessNo(String businessNo) {
        this.businessNo = businessNo == null ? null : businessNo.trim();
    }

    public String getBusinessNoLikeAfter() {
		return businessNoLikeAfter;
	}

	public void setBusinessNoLikeAfter(String businessNoLikeAfter) {
		this.businessNoLikeAfter = businessNoLikeAfter;
	}

	public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    public String getCompanyAddress() {
        return companyAddress;
    }

    public void setCompanyAddress(String companyAddress) {
        this.companyAddress = companyAddress == null ? null : companyAddress.trim();
    }

    public String getBusinessScope() {
        return businessScope;
    }

    public void setBusinessScope(String businessScope) {
        this.businessScope = businessScope == null ? null : businessScope.trim();
    }

    public String getFirstSalesman() {
        return firstSalesman;
    }

    public void setFirstSalesman(String firstSalesman) {
        this.firstSalesman = firstSalesman == null ? null : firstSalesman.trim();
    }

    public String getSecondSalesman() {
        return secondSalesman;
    }

    public void setSecondSalesman(String secondSalesman) {
        this.secondSalesman = secondSalesman == null ? null : secondSalesman.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getRegisteredCapital() {
        return registeredCapital;
    }

    public void setRegisteredCapital(String registeredCapital) {
        this.registeredCapital = registeredCapital == null ? null : registeredCapital.trim();
    }

    public String getPaidCapital() {
        return paidCapital;
    }

    public void setPaidCapital(String paidCapital) {
        this.paidCapital = paidCapital == null ? null : paidCapital.trim();
    }

    public BigDecimal getContractAmount() {
        return contractAmount;
    }

    public void setContractAmount(BigDecimal contractAmount) {
        this.contractAmount = contractAmount;
    }

    public String getPaymentWay() {
        return paymentWay;
    }

    public void setPaymentWay(String paymentWay) {
        this.paymentWay = paymentWay == null ? null : paymentWay.trim();
    }

    public BigDecimal getNominalFee() {
        return nominalFee;
    }

    public void setNominalFee(BigDecimal nominalFee) {
        this.nominalFee = nominalFee;
    }

    public String getCa() {
        return ca;
    }

    public void setCa(String ca) {
        this.ca = ca == null ? null : ca.trim();
    }

    public String getIsTallyNetfile() {
        return isTallyNetfile;
    }

    public void setIsTallyNetfile(String isTallyNetfile) {
        this.isTallyNetfile = isTallyNetfile == null ? null : isTallyNetfile.trim();
    }

    public String getNominalFeeBearer() {
        return nominalFeeBearer;
    }

    public void setNominalFeeBearer(String nominalFeeBearer) {
        this.nominalFeeBearer = nominalFeeBearer == null ? null : nominalFeeBearer.trim();
    }

    public BigDecimal getMonthlyFee() {
        return monthlyFee;
    }

    public void setMonthlyFee(BigDecimal monthlyFee) {
        this.monthlyFee = monthlyFee;
    }

    public BigDecimal getReceivable() {
        return receivable;
    }

    public void setReceivable(BigDecimal receivable) {
        this.receivable = receivable;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getAdjunct() {
        return adjunct;
    }

    public void setAdjunct(String adjunct) {
        this.adjunct = adjunct == null ? null : adjunct.trim();
    }

    public String getProcInstId() {
        return procInstId;
    }

    public void setProcInstId(String procInstId) {
        this.procInstId = procInstId == null ? null : procInstId.trim();
    }

    public String getAliveFlag() {
        return aliveFlag;
    }

    public void setAliveFlag(String aliveFlag) {
        this.aliveFlag = aliveFlag == null ? null : aliveFlag.trim();
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    public String getCreatorName() {
		return creatorName;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}

	public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier == null ? null : modifier.trim();
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public List<BpmStockHolder> getBpmStockHolders() {
		return bpmStockHolders;
	}

	public void setBpmStockHolders(List<BpmStockHolder> bpmStockHolders) {
		this.bpmStockHolders = bpmStockHolders;
	}

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	@Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BpmForm other = (BpmForm) that;
        return (this.getFormId() == null ? other.getFormId() == null : this.getFormId().equals(other.getFormId()))
            && (this.getContractNo() == null ? other.getContractNo() == null : this.getContractNo().equals(other.getContractNo()))
            && (this.getBusinessNo() == null ? other.getBusinessNo() == null : this.getBusinessNo().equals(other.getBusinessNo()))
            && (this.getCompanyName() == null ? other.getCompanyName() == null : this.getCompanyName().equals(other.getCompanyName()))
            && (this.getCompanyAddress() == null ? other.getCompanyAddress() == null : this.getCompanyAddress().equals(other.getCompanyAddress()))
            && (this.getBusinessScope() == null ? other.getBusinessScope() == null : this.getBusinessScope().equals(other.getBusinessScope()))
            && (this.getFirstSalesman() == null ? other.getFirstSalesman() == null : this.getFirstSalesman().equals(other.getFirstSalesman()))
            && (this.getSecondSalesman() == null ? other.getSecondSalesman() == null : this.getSecondSalesman().equals(other.getSecondSalesman()))
            && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
            && (this.getRegisteredCapital() == null ? other.getRegisteredCapital() == null : this.getRegisteredCapital().equals(other.getRegisteredCapital()))
            && (this.getPaidCapital() == null ? other.getPaidCapital() == null : this.getPaidCapital().equals(other.getPaidCapital()))
            && (this.getContractAmount() == null ? other.getContractAmount() == null : this.getContractAmount().equals(other.getContractAmount()))
            && (this.getPaymentWay() == null ? other.getPaymentWay() == null : this.getPaymentWay().equals(other.getPaymentWay()))
            && (this.getNominalFee() == null ? other.getNominalFee() == null : this.getNominalFee().equals(other.getNominalFee()))
            && (this.getCa() == null ? other.getCa() == null : this.getCa().equals(other.getCa()))
            && (this.getIsTallyNetfile() == null ? other.getIsTallyNetfile() == null : this.getIsTallyNetfile().equals(other.getIsTallyNetfile()))
            && (this.getNominalFeeBearer() == null ? other.getNominalFeeBearer() == null : this.getNominalFeeBearer().equals(other.getNominalFeeBearer()))
            && (this.getMonthlyFee() == null ? other.getMonthlyFee() == null : this.getMonthlyFee().equals(other.getMonthlyFee()))
            && (this.getReceivable() == null ? other.getReceivable() == null : this.getReceivable().equals(other.getReceivable()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getAdjunct() == null ? other.getAdjunct() == null : this.getAdjunct().equals(other.getAdjunct()))
            && (this.getProcInstId() == null ? other.getProcInstId() == null : this.getProcInstId().equals(other.getProcInstId()))
            && (this.getAliveFlag() == null ? other.getAliveFlag() == null : this.getAliveFlag().equals(other.getAliveFlag()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getModifier() == null ? other.getModifier() == null : this.getModifier().equals(other.getModifier()))
            && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFormId() == null) ? 0 : getFormId().hashCode());
        result = prime * result + ((getContractNo() == null) ? 0 : getContractNo().hashCode());
        result = prime * result + ((getBusinessNo() == null) ? 0 : getBusinessNo().hashCode());
        result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
        result = prime * result + ((getCompanyAddress() == null) ? 0 : getCompanyAddress().hashCode());
        result = prime * result + ((getBusinessScope() == null) ? 0 : getBusinessScope().hashCode());
        result = prime * result + ((getFirstSalesman() == null) ? 0 : getFirstSalesman().hashCode());
        result = prime * result + ((getSecondSalesman() == null) ? 0 : getSecondSalesman().hashCode());
        result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
        result = prime * result + ((getRegisteredCapital() == null) ? 0 : getRegisteredCapital().hashCode());
        result = prime * result + ((getPaidCapital() == null) ? 0 : getPaidCapital().hashCode());
        result = prime * result + ((getContractAmount() == null) ? 0 : getContractAmount().hashCode());
        result = prime * result + ((getPaymentWay() == null) ? 0 : getPaymentWay().hashCode());
        result = prime * result + ((getNominalFee() == null) ? 0 : getNominalFee().hashCode());
        result = prime * result + ((getCa() == null) ? 0 : getCa().hashCode());
        result = prime * result + ((getIsTallyNetfile() == null) ? 0 : getIsTallyNetfile().hashCode());
        result = prime * result + ((getNominalFeeBearer() == null) ? 0 : getNominalFeeBearer().hashCode());
        result = prime * result + ((getMonthlyFee() == null) ? 0 : getMonthlyFee().hashCode());
        result = prime * result + ((getReceivable() == null) ? 0 : getReceivable().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getAdjunct() == null) ? 0 : getAdjunct().hashCode());
        result = prime * result + ((getProcInstId() == null) ? 0 : getProcInstId().hashCode());
        result = prime * result + ((getAliveFlag() == null) ? 0 : getAliveFlag().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getModifier() == null) ? 0 : getModifier().hashCode());
        result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
        return result;
    }
}